<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\service\staff;

use app\model\StaffModel;
use app\service\BaseService;

final class StaffService extends BaseService
{
    /**
     * 获取员工名.
     * @param int $id 员工id
     * @return mixed
     */
    public static function getStaffName(int $id = 0)
    {
        return (new StaffModel())->where('id', $id)->value('staff_name');
    }

}
